Note this code is intended to live inside pixman in the long term.
